package com.aop.log.service.impl;

import com.aop.log.dao.MyLogRepository;
import com.aop.log.entity.MyLog;
import com.aop.log.service.MyLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date 2020/11/1 10:39
 */
@Service
public class MyLogServiceImpl implements MyLogService {

    @Autowired
    private MyLogRepository repository;


    @Override
    public List<MyLog> listLog() {
        return repository.findAll();
    }

    @Override
    public MyLog saveLog(MyLog myLog) {
        return repository.save(myLog);
    }
}
